Search:

Type: Posts; User: oogabooga

Search: Search took 0.03 seconds.

  1. Replies
    8
    Views
    1,044

    You can't do it like that (because the order of...

    You can't do it like that (because the order of function argument evaluation is unspecified).
    Instead, try this:


    int err = fsync(rr->sock);
    printf("%i %i - %s\n", err, errno, strerror(errno));...
  2. Replies
    8
    Views
    1,044

    Try putting an fsync call after your send call: ...

    Try putting an fsync call after your send call:


    send(rr->sock, "text", 4, 0);
    fsync(rr->sock);

    You should, of course, be checking the return values for an error condition.

    EDIT: I should...
Results 1 to 2 of 2