I have a program which reads in lines from a terminal using fgets(). Normally this means I can use the backspace key for editing, and my program doesn't see this; it simply gets the edited line. Then, I wanted some daemons executed periodically, regardless of what the user is doing, so I used alarm(). All my SIGALRM handler does is call signal() and alarm() again. Suddenly line-editing no longer works. That is, it works between alarms, but as soon as the signal hits, I can no longer backspace over what is already in the buffer. 1. How do I make it not do this? 2. Is POSIX supposed to do this? I couldn't find any mention of this situation in my POSIX Programmer's Guide. I tested the code on an Ultrix and a NeXT, and neither of them had this trouble. This is with 0.96c pl2 and gcc 2.2.2d. -- Steve Robbins -- steve@nyongwa.cam.org All the nightmares came today And it looks as though they're here to stay
| Linus Torvalds | Linux 2.6.27-rc8 |
| Greg KH | [patch 00/71] 2.6.26-stable review |
| Dmitry Torokhov | 2.6.27-rc8+ - first impressions |
| jimmy bahuleyan | Re: Hibernation considerations |
git: | |
| Petr Baudis | [FYI][PATCH] Customizing the WinGit installer |
| Jan Hudec | Re: [PATCH] Move all dashed form git commands to libexecdir |
| Jay Soffian | Re: [PATCH] gitweb: Support caching projects list |
| Mark Levedahl | Allowing override of the default "origin" nickname |
| Richard Stallman | Real men don't attack straw men |
| Leon Dippenaar | New tcp stack attack |
| Luca Dell'Oca | Authenticate squid in Active Directory |
| Todd Pytel | IDE or SCSI virtual disks for VMWare image? |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Matthew Dharm | Re: [RFC] Patch to option HSO driver to the kernel |
| Ingo Molnar | Re: [bug] stuck localhost TCP connections, v2.6.26-rc3+ |
| David Miller | Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit kernels. |
