i see - it's only an issue of 'proper c++ coding' (cleaner namespaces and stuff). still, better leave the lazy coding habits for any leftover windows sessions - linux is about kickass stuff ;)
Type: Posts; User: abc_coder
i see - it's only an issue of 'proper c++ coding' (cleaner namespaces and stuff). still, better leave the lazy coding habits for any leftover windows sessions - linux is about kickass stuff ;)
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <unistd.h> i
nt main(int argc,char** argv)
{
int i,fd;
struct stat st;
...
yeah, SIGTSTP (sorry for the typo).
however, Ctrl-\ may send either the Posix "Quit" (SIGQUIT) or the Ansi "Abort" (SIGABRT) - it's terminal-dependent.
skill -9 netscape
"-9" may be needed if it doesn't stop without it :D
all you can do is catch a bunch of 'allowed' signals:
stopping (sort of ;) ):
SIGINT (Ctrl-C)
SIGABRT(Ctrl-\)
SIGTERM
SIGHUP
pausing:
SIGSTP (Ctrl-Z)
or, if you do, use <cstdio> (and, as mentioned, <iostream> - the ".h" version is obsolete) and be careful about synchronization between the 2 streamsets ;)