process.c: move exit parser to a separate file

* exit.c: New file.
* Makefile.am (strace_SOURCES): Add it.
* process.c (sys_exit): Move to exit.c.
diff --git a/Makefile.am b/Makefile.am
index 3671ce0..d03d90c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,6 +32,7 @@
 	desc.c		\
 	dirent.c	\
 	execve.c	\
+	exit.c		\
 	fadvise.c	\
 	fallocate.c	\
 	fanotify.c	\
diff --git a/exit.c b/exit.c
new file mode 100644
index 0000000..0e0c2ea
--- /dev/null
+++ b/exit.c
@@ -0,0 +1,16 @@
+#include "defs.h"
+
+int
+sys_exit(struct tcb *tcp)
+{
+	if (exiting(tcp)) {
+		fprintf(stderr, "_exit returned!\n");
+		return -1;
+	}
+	/* special case: we stop tracing this process, finish line now */
+	tprintf("%ld) ", tcp->u_arg[0]);
+	tabto();
+	tprints("= ?\n");
+	line_ended();
+	return 0;
+}
diff --git a/process.c b/process.c
index f332118..18ac924 100644
--- a/process.c
+++ b/process.c
@@ -101,21 +101,6 @@
 }
 #endif
 
-int
-sys_exit(struct tcb *tcp)
-{
-	if (exiting(tcp)) {
-		fprintf(stderr, "_exit returned!\n");
-		return -1;
-	}
-	/* special case: we stop tracing this process, finish line now */
-	tprintf("%ld) ", tcp->u_arg[0]);
-	tabto();
-	tprints("= ?\n");
-	line_ended();
-	return 0;
-}
-
 #include "xlat/ptrace_cmds.h"
 #include "xlat/ptrace_setoptions_flags.h"
 #include "xlat/nt_descriptor_types.h"