diff options
| author | Richard M. Stallman | 1997-01-26 05:14:27 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-01-26 05:14:27 +0000 |
| commit | b77c56e6a88a3000bb06b45db77cbb989f3653be (patch) | |
| tree | e66ae04350dad8c6fd659856db8242f664a70f46 | |
| parent | ffb8c7cb58cd967c5b76d625f2ccbc9e9fe75e34 (diff) | |
| download | emacs-b77c56e6a88a3000bb06b45db77cbb989f3653be.tar.gz emacs-b77c56e6a88a3000bb06b45db77cbb989f3653be.zip | |
(ange-ftp-get-process): Call delete-process.
| -rw-r--r-- | lisp/ange-ftp.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el index 5f68210d535..35b63c1ec2c 100644 --- a/lisp/ange-ftp.el +++ b/lisp/ange-ftp.el | |||
| @@ -1383,6 +1383,10 @@ then kill the related ftp process." | |||
| 1383 | "Quote any characters in STRING that may confuse the ftp process." | 1383 | "Quote any characters in STRING that may confuse the ftp process." |
| 1384 | (apply (function concat) | 1384 | (apply (function concat) |
| 1385 | (mapcar (function | 1385 | (mapcar (function |
| 1386 | ;; This is said to be wrong; ftp is said to | ||
| 1387 | ;; need quoting only for ", and that by doubling it. | ||
| 1388 | ;; But experiment says this kind of quoting is correct | ||
| 1389 | ;; when talking to ftp on GNU/Linux systems. | ||
| 1386 | (lambda (char) | 1390 | (lambda (char) |
| 1387 | (if (or (<= char ? ) | 1391 | (if (or (<= char ? ) |
| 1388 | (> char ?\~) | 1392 | (> char ?\~) |
| @@ -1971,6 +1975,8 @@ Create a new process if needed." | |||
| 1971 | (proc (get-process name))) | 1975 | (proc (get-process name))) |
| 1972 | (if (and proc (memq (process-status proc) '(run open))) | 1976 | (if (and proc (memq (process-status proc) '(run open))) |
| 1973 | proc | 1977 | proc |
| 1978 | ;; Must delete dead process so that new process can reuse the name. | ||
| 1979 | (if proc (delete-process proc)) | ||
| 1974 | (let ((pass (ange-ftp-quote-string | 1980 | (let ((pass (ange-ftp-quote-string |
| 1975 | (ange-ftp-get-passwd host user))) | 1981 | (ange-ftp-get-passwd host user))) |
| 1976 | (account (ange-ftp-quote-string | 1982 | (account (ange-ftp-quote-string |