Skip to content

Commit

Permalink
Relocate pipes.c and pipes.h file to shared directory.
Browse files Browse the repository at this point in the history
With the addition of logger process redirect in supervise-daemon,
pipes.c and pipes.h are now included in both s-s-d and supervise-daemon.
Thus it makes sense to move the source files to the src/shared dir.
  • Loading branch information
Higgs1 committed Sep 26, 2023
1 parent ff51060 commit ddcc7b5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/shared/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ schedules_c = files([
'schedules.c',
])

pipes_c = files([
'pipes.c',
])

if selinux_dep.found()
selinux_c = files([
'selinux.c',
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/start-stop-daemon/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
executable('start-stop-daemon',
['start-stop-daemon.c', 'pipes.c', misc_c, schedules_c,
['start-stop-daemon.c', pipes_c, misc_c, schedules_c,
selinux_c, usage_c, version_h],
c_args : [cc_audit_flags, cc_branding_flags, cc_pam_flags, cc_cap_flags, cc_selinux_flags],
link_with: [libeinfo, librc],
Expand Down
2 changes: 1 addition & 1 deletion src/supervise-daemon/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
executable('supervise-daemon',
['supervise-daemon.c', '../start-stop-daemon/pipes.c', misc_c, plugin_c, schedules_c, usage_c, version_h],
['supervise-daemon.c', pipes_c, misc_c, plugin_c, schedules_c, usage_c, version_h],
c_args : [cc_branding_flags, cc_pam_flags, cc_cap_flags, cc_selinux_flags],
link_with: [libeinfo, librc],
dependencies: [dl_dep, pam_dep, cap_dep, util_dep, selinux_dep],
Expand Down

0 comments on commit ddcc7b5

Please sign in to comment.