Search:

Type: Posts; User: crazeinc

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,631

    That did the trick, thanks a bunch. I'll chalk...

    That did the trick, thanks a bunch. I'll chalk that up to my C inexperience, I wasn't even aware you could do that.
  2. Replies
    2
    Views
    1,631

    Help with threading

    I'm working on a 1-to-many consumer/producers problem. The trouble is when I execute more than one producer to connect to the consumer, the other producer that was already connected isn't finishing...
  3. Replies
    1
    Views
    15,154

    socket programming in linux

    The code is pretty sloppy, but I'm trying to figure out socket programming in unix and have a problem. The client passes a filename to a "fileserver", fileserver returns a code if the file is there...
  4. Replies
    2
    Views
    2,676

    If I comment out this code in testgenerate.c ...

    If I comment out this code in testgenerate.c


    /* read from pipe */
    while(check = read(fd,readbuf,10) != 0){
    if(check == -1)
    {
    perror("Read error\n");
    return 5;
    }
  5. Replies
    2
    Views
    2,676

    Having trouble with a named pipe

    The jist of this program is there's testgenerate that reads from a pipe called ncc, after it forks two children that both write to the pipe. The only problem is that when the processes open the pipe,...
  6. when the recursion is on it's way back up, it...

    when the recursion is on it's way back up, it appears that the while((dirt = readdir(dirp)) != NULL) condition is failing even though that isn't the case. The /root/code folder also has a hw2/ folder...
  7. Yea, i noticed that, I've updated my code so it...

    Yea, i noticed that, I've updated my code so it won't do that anymore.
  8. Trying to write a recursive directory listing

    figured it out :)
  9. Replies
    2
    Views
    914

    thanks for the help.

    thanks for the help.
  10. Replies
    2
    Views
    914

    Linux programming help

    I'm trying my hand with a little unix programming, but my second execvp in main() below doesn't appear to be working correctly.
    A sample call to this would be ./rungenerator 20 1 and the output is...
Results 1 to 10 of 14