Revision a1629e28 ffmpeg.c

View differences:

ffmpeg.c
540 540
#ifdef SIGXCPU
541 541
    signal(SIGXCPU, sigterm_handler);
542 542
#endif
543

  
544
#if CONFIG_BEOS_NETSERVER
545
    fcntl(0, F_SETFL, fcntl(0, F_GETFL) | O_NONBLOCK);
546
#endif
547 543
}
548 544

  
549 545
/* read a key without blocking */
......
552 548
#if HAVE_TERMIOS_H
553 549
    int n = 1;
554 550
    unsigned char ch;
555
#if !CONFIG_BEOS_NETSERVER
556 551
    struct timeval tv;
557 552
    fd_set rfds;
558 553

  
......
561 556
    tv.tv_sec = 0;
562 557
    tv.tv_usec = 0;
563 558
    n = select(1, &rfds, NULL, NULL, &tv);
564
#endif
565 559
    if (n > 0) {
566 560
        n = read(0, &ch, 1);
567 561
        if (n == 1)

Also available in: Unified diff