mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-19 05:44:12 +01:00
lightningd: don't join the config_dir to the pid_file path
This commit is contained in:
parent
10ed2ebdb4
commit
4672795e1a
@ -20,6 +20,8 @@ changes.
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
- Relative `--lightning_dir` is now working again.
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
||||||
## [0.7.2.1] - 2019-08-19: "Nakamoto's Pre-approval by US Congress"
|
## [0.7.2.1] - 2019-08-19: "Nakamoto's Pre-approval by US Congress"
|
||||||
|
@ -543,9 +543,8 @@ static void pidfile_create(const struct lightningd *ld)
|
|||||||
int pid_fd;
|
int pid_fd;
|
||||||
char *pid;
|
char *pid;
|
||||||
|
|
||||||
/* Create PID file: relative to .config dir unless absolute. */
|
/* Create PID file: relative to .config dir. */
|
||||||
pid_fd = open(path_join(tmpctx, ld->config_dir, ld->pidfile),
|
pid_fd = open(ld->pidfile, O_WRONLY|O_CREAT, 0640);
|
||||||
O_WRONLY|O_CREAT, 0640);
|
|
||||||
if (pid_fd < 0)
|
if (pid_fd < 0)
|
||||||
err(1, "Failed to open PID file");
|
err(1, "Failed to open PID file");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user