... I wrote a simple program that used the AIO interface. As it turned out we don't support
this feature, but at that point I didn't know.
- [beket@sadness ~]$ gcc t_aio.c -o t_aio -Wall -ansi -pedantic
- [beket@sadness ~]$ ./t_aio
+ $ gcc t_aio.c -o t_aio -Wall -ansi -pedantic
+ $ ./t_aio
aio_read: Function not implemented
- [beket@sadness ~]$
+ $
Ktrace'ing the process and seeing with my own eyes what was going on, seemed like a good idea.
Here comes the fun. I misread the ktrace(1) man page and typed:
- [beket@sadness ~]$ ktrace -c ./t_aio
+ $ ktrace -c ./t_aio
And the system hang.
You can add these two commands in your ~/.gdbinit to save yourself from typing them again and again.
- [beket@sadness ~]$ cat ~/.gdbinit
+ $ cat ~/.gdbinit
handle SIGSEGV noprint
handle SIGUSR1 noprint