Blob Blame History Raw
--- netsniff-ng_0.5.5.0/src/netsniff-ng.c	2010-02-02 11:14:07.157284078 +0000
+++ netsniff-ng_0.5.5.0/src/netsniff-ng.c.1	2010-02-14 17:51:39.572993396 +0000
@@ -218,10 +218,7 @@
 	local.sun_family = AF_UNIX;
 	strncpy(local.sun_path, sockfile, sizeof(local.sun_path));
 
-	if (unlink(local.sun_path) != 0) {
-		perr("cannot unlink %s\n", local.sun_path);
-		pthread_exit(0);
-	}
+	unlink(local.sun_path); /* Don't care if this fails */
 
 	info("bind socket to %s\n", local.sun_path);