mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-15 22:50:54 +00:00
Signal handlers should take an int parameter for the signal they’re handling. Closes: https://bugs.gentoo.org/945124 Signed-off-by: Hoël Bézier <hoelbezier@riseup.net> Signed-off-by: Sam James <sam@gentoo.org>
20 lines
445 B
Diff
20 lines
445 B
Diff
--- a/src/udevil.c
|
|
+++ b/src/udevil.c
|
|
@@ -4795,7 +4795,7 @@ static int command_info( CommandData* data )
|
|
return ret;
|
|
}
|
|
|
|
-void command_monitor_finalize()
|
|
+void command_monitor_finalize(int signal)
|
|
{
|
|
//if (signal == SIGINT || signal == SIGTERM)
|
|
//printf( "\nudevil: SIGINT || SIGTERM\n");
|
|
@@ -4913,7 +4913,7 @@ finish_:
|
|
return 1;
|
|
}
|
|
|
|
-void command_interrupt()
|
|
+void command_interrupt(int signal)
|
|
{
|
|
if ( udev )
|
|
{
|