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
Running fwup writes while another fwup process is writing the same drive could be detrimental. Adding a lock file that can be used to infer another fwup process is running could be useful for cases where this needs to strictly be avoided.
Based on offline conversation with Frank, the initial suggestion for implementation is:
Figure out the lock file path. Maybe /tmp/fwup.mmcblk0 or something like that.
Create the lock file if it hasn’t already been created
Register an advisory lock on the file (via lockf). If this fails, then someone else is fwuping
Register an at_exit to erase the file
The text was updated successfully, but these errors were encountered:
Running fwup writes while another fwup process is writing the same drive could be detrimental. Adding a lock file that can be used to infer another fwup process is running could be useful for cases where this needs to strictly be avoided.
Based on offline conversation with Frank, the initial suggestion for implementation is:
/tmp/fwup.mmcblk0
or something like that.lockf
). If this fails, then someone else is fwupingThe text was updated successfully, but these errors were encountered: