Fix background process status in Unix

Change the way background process detection is handled in systems
without signals or termios.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
master
Claudio Matsuoka 13 years ago
parent 0cd5ecc266
commit 5d2fbdfc9e
  1. 6
      src/main.c

@ -28,7 +28,7 @@
extern int optind;
static struct sound_driver *sound;
static unsigned int foreground_in = 1, foreground_out = 1;
static unsigned int foreground_in, foreground_out;
static int refresh_status;
@ -87,6 +87,8 @@ static void sigcont_handler(int sig)
/* Only call if it was not already prepared */
set_tty();
}
#else
foreground_in = foregound_out = 1;
#endif
if (sig != 0)
@ -439,6 +441,8 @@ int main(int argc, char **argv)
#ifdef SIGTSTP
sigcont_handler(0);
#else
foreground_in = foregound_out = 1;
#endif
if (foreground_out && opt.verbose > 0) {
info_frame(&mi, &fi, &control, refresh_status);

Loading…
Cancel
Save