Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-shell-notification-center
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-shell-notification-center
Commits
7e4a8a1c
Commit
7e4a8a1c
authored
Feb 21, 2024
by
Erik Reider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close stdout script fd. Fixes #388
parent
d1f4a0a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
functions.vala
src/functions.vala
+3
-4
No files found.
src/functions.vala
View file @
7e4a8a1c
...
@@ -361,9 +361,7 @@ namespace SwayNotificationCenter {
...
@@ -361,9 +361,7 @@ namespace SwayNotificationCenter {
Shell
.
parse_argv
(
cmd
,
out
argvp
);
Shell
.
parse_argv
(
cmd
,
out
argvp
);
Pid
child_pid
;
Pid
child_pid
;
int
std_input
;
int
std_output
;
int
std_output
;
int
std_err
;
Process
.
spawn_async_with_pipes
(
Process
.
spawn_async_with_pipes
(
"/"
,
"/"
,
argvp
,
argvp
,
...
@@ -371,9 +369,9 @@ namespace SwayNotificationCenter {
...
@@ -371,9 +369,9 @@ namespace SwayNotificationCenter {
SpawnFlags
.
SEARCH_PATH
|
SpawnFlags
.
DO_NOT_REAP_CHILD
,
SpawnFlags
.
SEARCH_PATH
|
SpawnFlags
.
DO_NOT_REAP_CHILD
,
null
,
null
,
out
child_pid
,
out
child_pid
,
out
std_input
,
null
,
out
std_output
,
out
std_output
,
out
std_err
);
null
);
// stdout:
// stdout:
string
res
=
""
;
string
res
=
""
;
...
@@ -398,6 +396,7 @@ namespace SwayNotificationCenter {
...
@@ -398,6 +396,7 @@ namespace SwayNotificationCenter {
int
end_status
=
0
;
int
end_status
=
0
;
ChildWatch
.
add
(
child_pid
,
(
pid
,
status
)
=>
{
ChildWatch
.
add
(
child_pid
,
(
pid
,
status
)
=>
{
Process
.
close_pid
(
pid
);
Process
.
close_pid
(
pid
);
GLib
.
FileUtils
.
close
(
std_output
);
end_status
=
status
;
end_status
=
status
;
execute_command
.
callback
();
execute_command
.
callback
();
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment