chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
basic: modernize conf-files.c a bit
[elogind.git]
/
src
/
basic
/
process-util.c
diff --git
a/src/basic/process-util.c
b/src/basic/process-util.c
index 94ca0401d097e0e22970b8957d39df081936efef..0c6a494e07931adcd70c7105c22f4d97f6cbd1a2 100644
(file)
--- a/
src/basic/process-util.c
+++ b/
src/basic/process-util.c
@@
-185,8
+185,7
@@
int get_process_cmdline(pid_t pid, size_t max_length, bool comm_fallback, char *
return 0;
}
return 0;
}
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
void rename_process(const char name[8]) {
assert(name);
void rename_process(const char name[8]) {
assert(name);
@@
-251,8
+250,7
@@
int is_kernel_thread(pid_t pid) {
return 0;
}
return 0;
}
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
int get_process_capeff(pid_t pid, char **capeff) {
const char *p;
int r;
int get_process_capeff(pid_t pid, char **capeff) {
const char *p;
int r;
@@
-304,8
+302,7
@@
int get_process_exe(pid_t pid, char **name) {
return 0;
}
return 0;
}
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
static int get_process_id(pid_t pid, const char *field, uid_t *uid) {
_cleanup_fclose_ FILE *f = NULL;
char line[LINE_MAX];
static int get_process_id(pid_t pid, const char *field, uid_t *uid) {
_cleanup_fclose_ FILE *f = NULL;
char line[LINE_MAX];
@@
-537,8
+534,7
@@
void sigkill_wait(pid_t *pid) {
(void) wait_for_terminate(*pid, NULL);
}
(void) wait_for_terminate(*pid, NULL);
}
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
int kill_and_sigcont(pid_t pid, int sig) {
int r;
int kill_and_sigcont(pid_t pid, int sig) {
int r;
@@
-650,8
+646,7
@@
bool is_main_thread(void) {
return cached > 0;
}
return cached > 0;
}
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
noreturn void freeze(void) {
/* Make sure nobody waits for us on a socket anymore */
noreturn void freeze(void) {
/* Make sure nobody waits for us on a socket anymore */