Skip to content

Commit

Permalink
Runtime: Ignore errors if we were unable to send udevd a signal to exit
Browse files Browse the repository at this point in the history
The start-stop-daemon utility may have already terminated udevd.
Therefore, the following signal to exit may fail.

Signed-off-by: Alexey Gladkov <[email protected]>
  • Loading branch information
legionus committed Aug 14, 2021
1 parent 1b9789b commit a897daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/etc/rc.d/init.d/udev
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ stop() {
RETVAL=$?

# ignore any failed event because the init script will trigger again all events
udevadm control --exit
udevadm control --exit 2>/dev/null ||:
udevadm info --cleanup-db

return $RETVAL
Expand Down

0 comments on commit a897daa

Please sign in to comment.