Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion emhttp/plugins/dynamix/nchan/file_manager
Original file line number Diff line number Diff line change
Expand Up @@ -362,12 +362,12 @@ if (!file_exists($empty_dir)) {

// initialize $delete_empty_dirs state: null = not a move operation (yet), true = rsync copy-delete phase, false = cleanup phase (done)
$delete_empty_dirs = null;
$pid = false;

// infinite loop to monitor and execute file operations
// Note: exec() uses /bin/sh which is symlinked to bash in unraid and a requirement for process substitution syntax >(...)
while (true) {
unset($action, $source, $target, $H, $sparse, $exist, $zfs);
if (!isset($pid)) $pid = false;

// read job parameters from JSON file: $action, $title, $source, $target, $H, $sparse, $exist, $zfs (set by emhttp/plugins/dynamix/include/Control.php)
if (file_exists($active)) {
Expand Down
Loading