/* Test for nonblocking read and write on sockets.
- Copyright (C) 2011-2012 Free Software Foundation, Inc.
+ Copyright (C) 2011-2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "nonblocking.h"
#include "wait-process.h"
+#include "progname.h"
#include "macros.h"
#include "socket-server.h"
int
main (int argc, char *argv[])
{
- const char *child_path = argv[1];
- int test = atoi (argv[2]);
+ const char *child_path;
+ int test;
int server;
int port;
int child;
int server_socket;
int exitcode;
+ set_program_name (argv[0]);
+
+ child_path = argv[1];
+ test = atoi (argv[2]);
+
/* Create a server socket. */
server = create_server (0, 1, &port);