process hibernation and process descriptor table
hi guys i am doing a project on process hibernation. i am new to linux and i want u to tell me how can i print the contents of a process descriptor table. i had a look at the softwares like cryopid and BLCR but i am not able to get it at this stage. Any suggestions about how i should go about the project. Aniket Pansare ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: process hibernation and process descriptor table
aniket pansare [EMAIL PROTECTED] writes: i am new to linux and i want u to tell me how can i print the contents of a process descriptor table. You should probably ask some Linux people. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: process hibernation and process descriptor table
Hello, This list is unrelated to linux, it was designed for technical discussion concerning the FreeBSD operating system: www.freebsd.org. If you are looking for linux help I recommend you check kernel.org for documentation and online forums. On 10/30/08, aniket pansare [EMAIL PROTECTED] wrote: hi guys i am doing a project on process hibernation. i am new to linux and i want u to tell me how can i print the contents of a process descriptor table. i had a look at the softwares like cryopid and BLCR but i am not able to get it at this stage. Any suggestions about how i should go about the project. Aniket Pansare ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] -- /jT http://git.zen-sources.org/?p=kernel/zenmm.git;a=summary ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: process descriptor table
Artem Kazakov wrote: Dear All, please give me a hint, how to see process descriptor table? I'm debugging in gdb. what is a process descriptor table? process FILE descriptor table? process table? Tyoma. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: process descriptor table
what is a process descriptor table? process FILE descriptor table? process table? process file descriptor table I suppose. The problem is that at some point a socket() function is called. And it returns descriptor = 1, which is a standart ouput. So when write() is done, everything goes to terminal,instead of socket. I want to see descriptor table, to see why this can happen. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: process descriptor table
Artem Kazakov [EMAIL PROTECTED] writes: The problem is that at some point a socket() function is called. And it returns descriptor = 1, which is a standart ouput. socket() will not return 1 unless you previously closed descriptor 1, either directly with close(1) or indirectly with fclose(stdout). You probably did something like this: if (sd = socket(AF_INET, SOCK_STREAM, 0) != -1) { /* foo */ } which assigns either 1 or 0 to sd depending on whether socket() returned -1. You need to parenthesize the assignment: if ((sd = socket(AF_INET, SOCK_STREAM, 0)) != -1) { /* foo */ } You also need to check the return value from either bind() or connect() (they should have failed and set errno to ENOTSOCK), and enable compiler warnings (gcc should have warned you about the dodgy assignment / comparison). DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
process descriptor table
Dear All, please give me a hint, how to see process descriptor table? I'm debugging in gdb. Tyoma. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]