Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
daemon/automount: Ignore SIGWINCH
Running the daemon in the foreground, the following annoying message is
shown a lot.

> statemachine:1540: got unexpected signal 28!

Here the number 28 means `SIGWINCH`.

> Window size change. This is generated on some systems (including GNU)
> when the terminal driver's record of the number of rows and columns on
> the screen is changed. The default action is to ignore it.
>
> If a program does full-screen display, it should handle SIGWINCH. When
> the signal arrives, it should fetch the new screen size and reformat
> its display accordingly.

[1] http://www.delorie.com/gnu/docs/glibc/libc_478.html
  • Loading branch information
pmenzel committed Jun 10, 2017
1 parent ed8eaec commit 9f13e3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions daemon/automount.c
Expand Up @@ -1536,6 +1536,9 @@ static void *statemachine(void *arg)
do_hup_signal(master_list);
break;

case SIGWINCH:
continue;

default:
logerr("got unexpected signal %d!", sig);
continue;
Expand Down

0 comments on commit 9f13e3e

Please sign in to comment.