Lines 18-23
Link Here
|
18 |
v0.12d 8-4-98 Carl Declerck - updated #includes a bit |
18 |
v0.12d 8-4-98 Carl Declerck - updated #includes a bit |
19 |
k26 28-5-00 Vinicius Anselmo - added sound alert (demoniac) created by Stas |
19 |
k26 28-5-00 Vinicius Anselmo - added sound alert (demoniac) created by Stas |
20 |
k26 31-5-04 Vinicius Anselmo - updated for unix98 pty support |
20 |
k26 31-5-04 Vinicius Anselmo - updated for unix98 pty support |
|
|
21 |
k26 13-8-09 Pinkbyte - deleted fucking sound alert and "bye bye" message ;) |
21 |
*/ |
22 |
*/ |
22 |
|
23 |
|
23 |
#include <sys/types.h> |
24 |
#include <sys/types.h> |
Lines 502-523
Link Here
|
502 |
struct utmp utmp; |
503 |
struct utmp utmp; |
503 |
int ptyfd, servfd, len, n, sel, susp = 0; |
504 |
int ptyfd, servfd, len, n, sel, susp = 0; |
504 |
|
505 |
|
505 |
/* demoniac begin */ |
|
|
506 |
|
507 |
StopHandle(); |
508 |
|
509 |
if (InitSound()) /* play if we can */ |
510 |
{ |
511 |
DoSound(466, SLEN); // A#4 |
512 |
DoSound(622, SLEN); // D#5 |
513 |
DoSound(784, SLEN); // G5 |
514 |
DoSound(932, SLEN*2); // A#5 |
515 |
DoSound(784, SLEN); // G5 |
516 |
DoSound(932, SLEN*3); // A#5 |
517 |
} |
518 |
|
519 |
/* demoniac end */ |
520 |
|
521 |
if (!isatty(STDIN_FILENO)) |
506 |
if (!isatty(STDIN_FILENO)) |
522 |
errorf ("stdin is not a tty\n"); |
507 |
errorf ("stdin is not a tty\n"); |
523 |
|
508 |
|
Lines 660-666
Link Here
|
660 |
{ |
645 |
{ |
661 |
if ((n = read(ptyfd, buff, BUFF_SIZE)) < 1) |
646 |
if ((n = read(ptyfd, buff, BUFF_SIZE)) < 1) |
662 |
{ |
647 |
{ |
663 |
errorf ("bye bye\n"); |
|
|
664 |
exit (0); |
648 |
exit (0); |
665 |
} |
649 |
} |
666 |
|
650 |
|