1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 18:53:12 +02:00

fifo: add PID in default FIFO pipe filename (issue #1285)

This is to prevent two WeeChat using the same runtime directory to use the same
FIFO pipe.
This commit is contained in:
Sébastien Helleu
2021-05-08 21:43:25 +02:00
parent 6925ea3ccb
commit a9e210121b
8 changed files with 36 additions and 35 deletions
+4 -3
View File
@@ -102,8 +102,9 @@ fifo_command_init ()
"\n"
"FIFO pipe is used as remote control of WeeChat: you can send "
"commands or text to the FIFO pipe from your shell.\n"
"By default the FIFO pipe is called weechat_fifo and saved in the "
"WeeChat runtime directory (see /debug dirs).\n"
"By default the FIFO pipe is called weechat_fifo_xxx (where xxx is "
"the WeeChat process id) and saved in the WeeChat runtime directory "
"(see /debug dirs).\n"
"\n"
"The expected format is one of:\n"
" plugin.buffer *text or command here\n"
@@ -111,7 +112,7 @@ fifo_command_init ()
"\n"
"For example to change your freenode nick:\n"
" echo 'irc.server.freenode */nick newnick' "
">/run/user/1000/weechat/weechat_fifo\n"
">/run/user/1000/weechat/weechat_fifo_12345\n"
"\n"
"Please read the user's guide for more info and examples.\n"
"\n"
+1 -1
View File
@@ -122,7 +122,7 @@ fifo_config_init ()
"WeeChat PID can be used in path with ${info:pid} "
"(path is evaluated, see function string_eval_path_home in "
"plugin API reference)"),
NULL, 0, 0, "${weechat_runtime_dir}/weechat_fifo", NULL, 0,
NULL, 0, 0, "${weechat_runtime_dir}/weechat_fifo_${info:pid}", NULL, 0,
NULL, NULL, NULL,
fifo_config_change_file_path, NULL, NULL,
NULL, NULL, NULL);