You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The intention of dr_lock() is to wait for the lock either indefinitely or until an optional timeout expires. But at this point in the program's execution, the dr_timeout variable is always 0 since main() has yet to call set_timeout(). This causes any lock contention to make the program exit:
int drmgr_timed_out(void)
{
if (dr_timeout == -1)
return 0; /* No timeout specified */
if (dr_timeout > time((time_t *)0))
return 0;
say(WARN, "Drmgr has exceeded its specified wait time and will not "
"continue\n");
return 1;
}
lsslot makes for an easy illustration, but more importantly I believe this problem affects the drmgr command as well.
The text was updated successfully, but these errors were encountered:
Run two instances of lsslot concurrently and often one of them will error out:
The intention of
dr_lock()
is to wait for the lock either indefinitely or until an optional timeout expires. But at this point in the program's execution, thedr_timeout
variable is always 0 sincemain()
has yet to callset_timeout()
. This causes any lock contention to make the program exit:lsslot makes for an easy illustration, but more importantly I believe this problem affects the drmgr command as well.
The text was updated successfully, but these errors were encountered: