Search Results

Search: Posts Made By: p00ndawg
Forum: Programming 07-14-2009
3,828
Posted By p00ndawg
yes and no. It was an assignment but the deadline...
yes and no. It was an assignment but the deadline has already passed. I still want to finish it tho so i can know what to do and understand dup2 still, but after some messing with it I think my...
Forum: Programming 07-11-2009
3,828
Posted By p00ndawg
Why am I getting a defunct process/pipes?
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <stdint.h>

#define LINE_MAX ...
Forum: Programming 07-03-2009
2,785
Posted By p00ndawg
no I get no errors, the code runs fine and does...
no I get no errors, the code runs fine and does what I want. It just doesnt exit the child process.

---------- Post updated at 03:49 PM ---------- Previous update was at 11:52 AM ----------
...
Forum: Programming 07-03-2009
2,785
Posted By p00ndawg
Why does my child process not exit?
Im sure it has something to do with the wait() call, but everything ive tried either leaves me with a zombie or with the exec executing indefinitely.

switch(pid = fork())
{
case -1:perror("fork...
Forum: Programming 07-01-2009
8,775
Posted By p00ndawg
oh ok thanks alot, I think i understand now . I...
oh ok thanks alot, I think i understand now . I have a project coming up where ill need to use some pipes and I this really fills in some of my blanks.

thanks again.
Forum: Programming 06-30-2009
8,775
Posted By p00ndawg
yes I actually wanted processes A, B, and C...
yes I actually wanted processes A, B, and C communicating with each other, but I only wanted to pipe a message from a->b->c. I didnt realize I had created 4 processes.
Is there anyway to just...
Forum: Programming 06-28-2009
8,775
Posted By p00ndawg
yea I did that because i created two forks, but i...
yea I did that because i created two forks, but i wanted both to enter the switch statement.
Forum: Programming 06-16-2009
8,775
Posted By p00ndawg
Creating 3 process and piping a message
sorry im very new to this but i am supposed to create 3 processes A,B, and C and have a direct link from a to b, b to c, and c to a.

here is my code. It does work, however if you look at what I...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 02:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy