no error thrown with exit(0) in the child process of vfork()

2013-01-18 Thread Niroj Pokhrel
Hi all, I have been trying to create a process using vfork(). And both of the child and the parent process execute it in the same address space. So, if I execute exit(0) in the child process, it should throw some error right. Since the execution is happening in child process first and if I release

Re: working of fork and exec

2013-01-18 Thread Jonathan Neuschäfer
On Thu, Jan 17, 2013 at 10:32:45PM +0530, Niroj Pokhrel wrote: Hi all, I have been using fork and exec for sometime. But I have no idea about what are the things done by the kernel when we fork or exec and how things work. How the kernel load new program and what all things are done ...

Re: no error thrown with exit(0) in the child process of vfork()

2013-01-18 Thread Valdis . Kletnieks
On Fri, 18 Jan 2013 19:59:38 +0530, Niroj Pokhrel said: I have been trying to create a process using vfork(). And both of the child and the parent process execute it in the same address space. So, if I execute exit(0) in the child process, it should throw some error right. Why do you think it

Re: working of fork and exec

2013-01-18 Thread Mulyadi Santosa
Hi Peter :) On Fri, Jan 18, 2013 at 9:09 AM, Peter Teoh htmldevelo...@gmail.com wrote: Hi Mulyadi, Great to see you again! Sorry, can I fork on your explanation to explain further about fork? Sure, please fork to fork() Oh and btw, as always, you give nice reference links...bravo! --

Re: no error thrown with exit(0) in the child process of vfork()

2013-01-18 Thread Peter Teoh
On Sat, Jan 19, 2013 at 5:49 AM, valdis.kletni...@vt.edu wrote: On Fri, 18 Jan 2013 19:59:38 +0530, Niroj Pokhrel said: I have been trying to create a process using vfork(). And both of the child and the parent process execute it in the same address space. So, if I execute exit(0) in the

Re: no error thrown with exit(0) in the child process of vfork()

2013-01-18 Thread Peter Teoh
On Sat, Jan 19, 2013 at 10:43 AM, Peter Teoh htmldevelo...@gmail.comwrote: On Sat, Jan 19, 2013 at 5:49 AM, valdis.kletni...@vt.edu wrote: On Fri, 18 Jan 2013 19:59:38 +0530, Niroj Pokhrel said: I have been trying to create a process using vfork(). And both of the child and the parent

Re: no error thrown with exit(0) in the child process of vfork()

2013-01-18 Thread Niroj Pokhrel
On Sat, Jan 19, 2013 at 8:13 AM, Peter Teoh htmldevelo...@gmail.com wrote: On Sat, Jan 19, 2013 at 5:49 AM, valdis.kletni...@vt.edu wrote: On Fri, 18 Jan 2013 19:59:38 +0530, Niroj Pokhrel said: I have been trying to create a process using vfork(). And both of the child and the parent

Re: How to wake_up the wait_queue of a socket?

2013-01-18 Thread horseriver
On Fri, Jan 18, 2013 at 10:18:19AM +0800, Peter Teoh wrote: essentially, when the packet arrive, it will be assigned to the correct process based on IP address + port matching, and then the corresponding process's blocked scheduling status will be changed to continue execution, so that when

Re: working of fork and exec

2013-01-18 Thread horseriver
In my opinion , fork and exec is based on independent task environment for per process , which is corresponding to task_struct . ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Please help me communicating with wiz220io device

2013-01-18 Thread laliteshwar yadav
Hi All, I have written a raw socket to communicate with the device. It is not responding. I am setting every digital o/p port to high and through raw socket, i want to toggle them. It is not responding at all. my-ip 172.28.76.134 port 5000 module ip 172.28.77.50 port 8080 I have WIZ220IO

how to get outsated mail ?

2013-01-18 Thread horseriver
hi: If I subscribed a mail list at date x , how can I get those mail dated before x ? can I request maillist server to send those mail to my mail address ? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: How to wake_up the wait_queue of a socket?

2013-01-18 Thread Peter Teoh
On Sat, Jan 19, 2013 at 1:36 AM, horseriver horseriv...@gmail.com wrote: On Fri, Jan 18, 2013 at 10:18:19AM +0800, Peter Teoh wrote: essentially, when the packet arrive, it will be assigned to the correct process based on IP address + port matching, and then the corresponding process's

Re: how to get outsated mail ?

2013-01-18 Thread Dave Hylands
Hi, On Fri, Jan 18, 2013 at 10:53 AM, horseriver horseriv...@gmail.com wrote: hi: If I subscribed a mail list at date x , how can I get those mail dated before x ? can I request maillist server to send those mail to my mail address ? Archives are located here:

Re: how to get outsated mail ?

2013-01-18 Thread horseriver
On Fri, Jan 18, 2013 at 10:26:12PM -0800, Dave Hylands wrote: Hi, On Fri, Jan 18, 2013 at 10:53 AM, horseriver horseriv...@gmail.com wrote: hi: If I subscribed a mail list at date x , how can I get those mail dated before x ? can I request maillist server to send those mail to

socket state after accept() return

2013-01-18 Thread horseriver
hi: For one socket , which has been returned by accept() call , does its sk_state is assuredly already TCPF_ESTABLISHED ? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org